/**
 ******************************************************************************
 * @file    aps512xx_conf.h
 * @author  MCD Application Team
 * @brief   APS512XX 16bits-OSPI PSRAM memory configuration file.
 ******************************************************************************
 * @attention
 *
 * Copyright (c) 2021 STMicroelectronics.
 * All rights reserved.
 *
 * This software is licensed under terms that can be found in the LICENSE file
 * in the root directory of this software component.
 * If no LICENSE file comes with this software, it is provided AS-IS.
 *
 ******************************************************************************
 */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef APS512XX_CONF_H
#define APS512XX_CONF_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32u5xx_hal.h"

/** @addtogroup BSP
 * @{
 */
#define CONF_HSPI_DS   APS512XX_MR0_DS_HALF
#define CONF_HSPI_PASR APS512XX_MR4_PASR_FULL
#define CONF_HSPI_RF   APS512XX_MR4_RF_4X

#define DEFAULT_READ_LATENCY_CODE  APS512XX_READ_LATENCY_5
#define DEFAULT_WRITE_LATENCY_CODE APS512XX_WRITE_LATENCY_5
/**
 * @}
 */

#ifdef __cplusplus
}
#endif

#endif /* APS512XX_CONF_H */
